<?php

namespace app\modules\user\forms\info;

use app\common\forms\BaseForm;

class UserForm extends BaseForm{

    public $user_id;
    public $contact_name;
    public $contact_phone;

    public function rules()
    {
        return [
            ['user_id','default','value'=>\Yii::$app->getModule("user")->get("user")->getId()],
            ['contact_name','required','message'=>\Yii::t("app","姓名不能为空")],
            ['contact_phone','required','message'=>\Yii::t("app","电话不能为空")],
        ];
    }
}